package com.suning.sawp.dto.oga.bi;

public class SimpleRange<R extends Comparable<?>> {

    private final R lowerBound;
    private final R upperBound;

    public SimpleRange(R lowerBound, R upperBound) {
        this.lowerBound = lowerBound;
        this.upperBound = upperBound;
    }

    public R getLowerBound() {
        return lowerBound;
    }

    public R getUpperBound() {
        return upperBound;
    }

    @Override
    public String toString() {
        return String.format("%s-%s", lowerBound, upperBound);
    }

}
